package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_nursing_level")
public class NursingLevel {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer lplanId;
    private Double fee;
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer status;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Long createBy;
    private Long updateBy;
    private String remark;
    private LocalDateTime updateTime;
}
